import { observable, action } from "mobx";

class RootStore {
  //ip
  @observable ip = "http://192.168.1.7:5000"; 
  //品规
  @observable pg="ruanh"
  //真假
  @observable tOrf="真品"
  //概率
  @observable point="98.81%"
  //图片
  @observable img=""

  //ip修改
  @action changeName(ip) {
    this.ip = ip;
  } 
  //品规修改
  @action changePg(pg){ 
    this.pg=pg; 
  }
  //修改真假
  @action changetOrf(tf){
    this.tOrf=tf;
  }
  //修改概率
  @action changePoint(point){
    this.point=point;
  }
  //修改图片
  @action changeImg(img){
    this.img=img;
  } 


}

export default new RootStore();
